package com.llh.spring.aop.helloworld;

import com.llh.spring.aop.proxy.ArithmeticCalculatorLoggingProxy;

public class Main {
	public static void main(String[] args) {
		/*ArithmeticCalculator arithmeticCalculator = null;
		arithmeticCalculator = new ArithmeticCalculatorImpl();*/
		ArithmeticCalculator target = new ArithmeticCalculatorImpl();
		ArithmeticCalculator proxy = new ArithmeticCalculatorLoggingProxy(target).getLoggingProxy();
		int result = proxy.add(1, 2);
		System.out.println(proxy.getClass().getName());
		System.out.println("-->"+result);
		
	}

}
